﻿Imports System.ComponentModel

Public Class ConfigurationSection
  Inherits Configuration.ConfigurationSection

  <Configuration.ConfigurationProperty("roles")> _
  Public Property Roles() As Core.ConfigurationElementCollection
    Get
      Return CType(MyBase.Item("roles"), Core.ConfigurationElementCollection)
    End Get
    Set(ByVal value As Core.ConfigurationElementCollection)
      MyBase.Item("roles") = value
    End Set
  End Property

  Public Shared Function GetConfig() As Core.ConfigurationSection
    Return CType(Configuration.ConfigurationManager.GetSection("WebConfigRoleProvider"), Core.ConfigurationSection)
  End Function
End Class
